public class Client{
    public static void main(String[] args){
        ColorManager cm1,cm2;
        cm1=ColorManager.getInstance();
        cm2=ColorManager.getInstance();
        System.out.println("颜色池是否单一："+(cm1==cm2));


        System.out.println("obj1:");
        Color obj1=(Color)cm1.getColor("green");
        obj1.display();
        System.out.println("obj2:");
        Color obj2=(Color)cm1.getColor("blue");
        obj2.display();
        System.out.println("obj1==obj2?"+(obj1==obj2));
        
        

    }
}